package com.ct.springmvc.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/calc")
public class CalcController {
    @RequestMapping("/sum")
    public String calc (Integer num1, Integer num2) {
        Integer num = num1 +num2;
        return "计算机计算结果为: " +num;
    }
}
